﻿<%@ Page Language="C#" AutoEventWireup="True" Inherits="Fjaspx.UI.Web.Administrator_Objet_admin" ValidateRequest="false" Codebehind="admin.aspx.cs" %>


<%@ Register src="../top.ascx" tagname="top_help" tagprefix="uc1" %>


<html>
       
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="/administrator/images/style.css" rel="stylesheet" type="text/css">
<link href="/administrator/WebUI/SpryAssets/SpryTabbedPanels.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript"  src="/administrator/js/alt.js"></script>
<script language = "JavaScript">
function CheckAll(form)
  {
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll"&&e.disabled==false)
       e.checked = form.chkAll.checked;
    }
}
</script>
<body><uc1:top_help ID="top_help2" runat="server" />
<table width="100%" border="0" cellspacing="0" cellpadding="10">
  <tr>
    <td><form runat="server">
      
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:10px">
        <tr>
          <td width="29%" nowrap><img src="/administrator/images/funnel.png" width="16" height="16" align="absmiddle"> 筛选：
            <asp:DropDownList ID="DdlMenu" runat="server" CssClass="input" 
                  Width="200px" AutoPostBack="True" 
                  onselectedindexchanged="DdlMenu_SelectedIndexChanged"></asp:DropDownList>
          </td>
          <td width="46%" align="left" nowrap><img src="/administrator/images/date_magnify.gif" width="16" height="16" align="absmiddle"> 按时间筛选：
            <a href="?day=1&ClassKind=<% =this.ClassKind %>">今天</a> 
            <a href="?day=2&ClassKind=<% =this.ClassKind %>">昨天</a> 
            <a href="?day=3&ClassKind=<% =this.ClassKind %>">前天</a> 
            <a href="?day=4&ClassKind=<% =this.ClassKind %>">更早</a> 
            </td>
          <td width="25%" align="right" nowrap><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td nowrap><img src="/administrator/images/cms-ico7.gif" width="12" height="11" align="absmiddle"> 关键词搜索： </td>
              <td nowrap><input name="keywords" id="keywords" type="text" class="input" style="width:120px;height:21px" title="输入新闻标题关键词进行搜索！" runat="server"></td>
              <td align="right" width="40"> 
                  <asp:Button ID="Submit" CssClass="bt" runat="server" Text="搜索" onclick="Submit_Click" /></td>
            </tr>
          </table></td>
        </tr>
      </table>
      <table width="100%" height="110" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#CCCCCC">
        <tr class="TabbedPanelsTabHover">
          <td width="23" height="29" nowrap></td>
          <td width="28" nowrap><span class="line">编号</span></td>
          <td width="25" align="center" nowrap><span class="line">栏目</span></td>
          <td><span class="line">标题</span></td>
          <td width="43" nowrap><span class="line">作者</span></td>
          <td width="90" nowrap><span class="line">录入日期</span></td>
          <td width="65" nowrap><span class="line">置顶 | 推荐</span></td>
          <td width="34" nowrap><span class="line">状态</span></td>
          <td width="143" align="center" nowrap><span class="line">操作</span></td>
        </tr>
        
        
            <asp:Repeater ID="Repeater_admin" runat="server">
          <ItemTemplate>
            <tr>
              <td height="25" nowrap bgcolor="#F4FBFF"><asp:CheckBox ID="ID_list" runat="server" /></td>
              <td nowrap  bgcolor="#F4FBFF"><asp:Label ID="Label_id" runat="server" Text='<%#Eval("bh") %>'></asp:Label>
              </td>
              <td align="center" nowrap bgcolor="#F4FBFF" title='<%#get_classname(Convert.ToInt32(Eval("classname"))) %>'>
              <a  rel="facebox"  href="#classContent<%#Eval("bh") %>"><img src="/administrator/images/chart_organisation.png" border="0" title='<%#get_classname(Convert.ToInt32(Eval("classname"))) %>'></a>
              <div id="classContent<%#Eval("bh") %>" style="display:none;">
              <h3>分类详情</h3>
              <p>分类名称:[<%#Eval("classname") %>]<%#get_classname(Convert.ToInt32(Eval("classname"))) %></p>
              </div>
              </td>
              <td  bgcolor="#F4FBFF" title='<%#Eval("title") %>'><%#Eval("pic").ToString()=="no"?"":"<img src=/administrator/images/bullet_picture.png title=形象图 >" %><a  rel="facebox"  href='all.aspx?id=<%#Eval("bh") %>' title='<%#Eval("zhaiyao") %>'> <%#Eval("title") %> </a> <a rel="facebox" href="#zhaiyao<%#Eval("bh") %>"><img src="/administrator/images/tag.png" alt="查看摘要" border="0" title='<%#Eval("zhaiyao") %>'></a>
              <div id="zhaiyao<%#Eval("bh") %>" style="display:none;">
              <h3>信息摘要</h3>
              <p><%#Eval("zhaiyao") %></p>
              </div>
                <a href='/app_xml/<%#Eval("type") %>/<%#Eval("bh") %>.xml' target="_blank"><img src="/administrator/images/bullet_feed.png" alt="查看XML数据格式" border="0" title='<%#Eval("zhaiyao") %>'></a></td>
              <td nowrap  bgcolor="#F4FBFF" title='<%#Eval("author") %>'>
              <a rel="facebox" href="#author<%#Eval("bh") %>"><%#Eval("author")%></a>
               <div id="author<%#Eval("bh") %>" style="display:none;">
              <h3>作者详情</h3>
              <p><%#Eval("author") %></p>
              </div>
              </td>
              <td nowrap  bgcolor="#F4FBFF" title='<%#Eval("time") %>'><%#Eval("time") != null?Convert.ToDateTime(Eval("time")).ToString("yy/MM/dd hh:mm"):"00"%></td>
              <td align="center" nowrap  bgcolor="#F4FBFF">
              <a href='?t=ding&id=<%#Eval("bh") %>&ding=<%#Eval("ding") %>&ClassKind=<% =this.ClassKind %>&page=<% =Request["page"] %>'><b><font color="#FF3300" title="点击置顶"><%#Eval("ding").ToString().Trim()=="0"?"√":"X"%></font></b></a> 
              &nbsp;&nbsp;
               <a href='?t=tuijian&id=<%#Eval("bh") %>&tuijian=<%#Eval("tuijian") %>&ClassKind=<% =this.ClassKind %>&page=<% =Request["page"] %>'><b><font color="#FF3300" title="点击推荐。"><%#Eval("tuijian").ToString().Trim()=="0"?"√":"X"%></font></b></a> 
              </td>
              <td align="center" nowrap bgcolor="#F4FBFF"><a href='?t=K&id=<%#Eval("bh") %>&K=<%#Eval("switchs") %>&ClassKind=<% =this.ClassKind %>&page=<% =Request["page"] %>'><b><font color="#FF3300" title="点击关闭。"><%#Eval("switchs").ToString().Trim()=="0"?"√":"X"%></font></b></a> </td>
              <td align="center" nowrap bgcolor="#F4FBFF"><a rel="facebox" href='all.aspx?id=<%#Eval("bh") %>'>详情</a> | <a href='Remark.aspx?NewsId=<%#Eval("bh") %>'>评论</a> | <a href='edit.aspx?id=<%#Eval("bh") %>&class=<%#Eval("classname") %>&ClassKind=<% =this.ClassKind %>'>编辑</a> | <a href='?t=del&id=<%#Eval("bh") %>&class=<%#Eval("classname") %>&ClassKind=<% =this.ClassKind %>' onClick="return window.confirm('确定删除 [<%#Eval("title") %>] 吗?');">删除</a></td>
            </tr>
          </ItemTemplate>
        </asp:Repeater>
        
        
        <tr>
          <td height="25" colspan="9" bgcolor="#F4FBFF">
            

            
            <input name="chkAll" type="checkbox" id="chkAll" onClick="CheckAll(form)" value="checkbox" style="position:absolute;clip: rect(6 15 15 6)">
            <img src="/administrator/images/cms-ico12.gif" border="0">
            <asp:ImageButton ID="ImageButton_all_del" runat="server" ImageUrl="/administrator/images/cms-ico10.gif" onclick="ImageButton_all_del_Click" style="width: 63px" OnClientClick="return window.confirm('确定删除多条记录吗?');"  />      
            <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="/administrator/images/cms-ding.gif" onclick="ImageButton_ding_Click" style="width: 63px" />      
            <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="/administrator/images/cms-K.gif" onclick="ImageButton_K_Click" style="width: 63px" />                
            
            
            <center>
            
            <Script Language="JavaScript" type="text/JavaScript" src="/Administrator/js/page.js"></Script>
            <script language="JavaScript">
<!--
var pg = new showPages('pg');
pg.pageCount =<% =pages %>;  // 定义总页数(必要)
pg.argName = 'page';  // 定义参数名(可选,默认为page)
//document.write('<br>Show Times: ' + pg.showTimes + ', Mood 1');
pg.printHtml(1);
//-->
      </script>
               总 [
               <span class="TabbedPanelsTabHover"><% = pages*30 %></span>] 条数据
</center>
            
            
          </td>
          </tr>
      </table>
      <table width="100%" border="0" cellpadding="0" cellspacing="0" >
        <tr>
          <td width="140" height="25" valign="top">  
          </td>
          
        </tr>
      </table>
    </form></td>
    </tr>
</table>
</body>
</html>